﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/MasterPage.master" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="User_Register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        
        .style1
        {
            width: 100%;
        }
        
        .style2
        {
            height: 31px;
        }
        .style3
        {
            height: 28px;
        }
        .style4
        {
            height: 27px;
        }
        .style5
        {
            height: 30px;
        }
        
        .style6
        {
            height: 31px;
            width: 160px;
        }
        .style7
        {
            height: 28px;
            width: 160px;
        }
        .style8
        {
            height: 30px;
            width: 160px;
        }
        .style9
        {
            height: 27px;
            width: 160px;
        }
        
    </style>
    <script type="text/javascript">
        function clickButton(e, buttonid) {
            var evt = e ? e : window.event;
            var bt = document.getElementById(buttonid);

            if (bt) {
                if (evt.keyCode == 13) {
                    bt.click();
                    return false;
                }
            }
        }

        function Button1_onclick() {
            document.getElementById('txtTenDN').value = "";
            document.getElementById('txtTenDN').focus();
        }
        
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div style="margin-left: 10px">
    <table cellpadding="2" cellspacing="10" class="style1" style="margin:10px;
        font-family:Arial, Helvetica, sans-serif;font-size:10pt;" width="100%">
        <tr>
            <td colspan="2"  style="text-align: center;color:#000000">
                <h3><b>TH&Ocirc;NG TIN &#272;&#258;NG K&Yacute;</b></h3>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: left; color: #000000;">
            <asp:Label ID="lbthongbao" runat="server" ForeColor="Black" 
                
                    Text="Y&ecirc;u c&#7847;u nh&#7853;p &#273;&#7847;y &#273;&#7911; th&ocirc;ng tin b&#7855;t bu&#7897;c(*)"></asp:Label>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" colspan="2" style="color:#FF0000; font-weight: bold;">
               Th&ocirc;ng Tin &#272;&#259;ng Nh&#7853;p  &nbsp;
                <br />
            </td>
        </tr>
        <tr>
            <td style=" color:#000000" class="style6">
              *T&ecirc;n &#273;&#259;ng nh&acirc;p:  &nbsp;</td>
            <td class="style2">
                <asp:TextBox ID="txtTenDN" runat="server" Width="186px" AutoPostBack="True" 
                    ontextchanged="txtTenDN_TextChanged" ValidationGroup="check" 
                    CssClass="inp-form"></asp:TextBox> &nbsp;<asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTenDN" 
                    ErrorMessage="RequiredFieldValidator" ForeColor="Red" 
                    ValidationGroup="check">*</asp:RequiredFieldValidator><asp:Label ID="lbloitendangnhap" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style=" color:#000000" class="style7">
               *M&#7853;t kh&#7849;u:&nbsp;</td>
            <td class="style3">
               <asp:TextBox ID="txtMatKhau" runat="server" Width="186px" TextMode="Password" 
                    ValidationGroup="check" CssClass="inp-form"></asp:TextBox> &nbsp;<asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtMatKhau" 
                    ErrorMessage="RequiredFieldValidator" ForeColor="Red" 
                    ValidationGroup="check">*</asp:RequiredFieldValidator>
                <asp:Label ID="lbloinatkhau" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style=" color:#000000" class="style6">
              *Nh&#7853;p L&#7841;i M&#7853;t kh&#7849;u:  &nbsp;</td>
            <td class="style2">
               <asp:TextBox ID="txtMatKhauNL" runat="server" Width="186px" TextMode="Password" 
                    ValidationGroup="check" CssClass="inp-form"></asp:TextBox>  &nbsp;<asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator3" runat="server" 
                    ErrorMessage="RequiredFieldValidator" ForeColor="Red" 
                    ControlToValidate="txtMatKhauNL" ValidationGroup="check">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator2" runat="server" 
                    ControlToCompare="txtMatKhau" ControlToValidate="txtMatKhauNL" 
                    ErrorMessage="M&#7853;t kh&#7849;u ph&#7843;i tr&ugrave;ng" 
                    ForeColor="Red" ValidationGroup="check"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2" style=" color:#FF0000; font-weight: bold;" >
               Th&ocirc;ng Tin C&aacute; Nh&acirc;n &nbsp;
                <br />
            </td>
        </tr>
        <tr>
            <td style=" color:#000000" class="style8">
               *H&#7885; T&ecirc;n: &nbsp;</td>
            <td class="style5">
               <asp:TextBox ID="txtHoTen" runat="server" Width="186px" ValidationGroup="check" 
                    CssClass="inp-form"></asp:TextBox>  &nbsp;<asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtHoTen" 
                    ErrorMessage="RequiredFieldValidator" ForeColor="Red" 
                    ValidationGroup="check">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style=" color:#000000" class="style9">
               *Email: &nbsp;</td>
            <td class="style4">
               <asp:TextBox ID="txtEmail" runat="server" Width="186px" ValidationGroup="check" 
                    CssClass="inp-form"></asp:TextBox>  &nbsp;<asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtEmail" 
                    ErrorMessage="RequiredFieldValidator" ForeColor="Red" 
                    ValidationGroup="check">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    
                    
                    
                    ErrorMessage="Nh&#7853;p &#273;&uacute;ng &#273;&#7883;nh d&#7841;ng Email" ForeColor="Red" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                    ControlToValidate="txtEmail" ValidationGroup="check"></asp:RegularExpressionValidator><asp:Label ID="lbloiemail" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style=" color:#000000" class="style7">
               *Ng&agrave;y Sinh &nbsp;</td>
            <td class="style3">
                <table border="0" cellpadding="0" cellspacing="0">
			<tr  valign="top">
				<td>
				<!--<form id="chooseDateForm" action="#">-->
				
				<asp:DropDownList ID="dlNgay" runat="server" CssClass="styledselect-day">
                </asp:DropDownList>
&nbsp;</td>
				<td>
					<asp:DropDownList ID="dlThang" runat="server" 
                        CssClass="styledselect-month">
                    </asp:DropDownList>
&nbsp;</td>
				<td>
					
					
				    <asp:DropDownList ID="dlNam" runat="server" 
                        CssClass="styledselect-year">
                    </asp:DropDownList>
				</td>
				<td>
                    &nbsp;</td>
			</tr>
			</table><asp:Label ID="lbNgay" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style=" color:#000000" class="style9">
               *&#272;&#7883;a Ch&#7881;: &nbsp;</td>
            <td class="style4">
                <asp:TextBox ID="txtDiaChi" runat="server" Width="186px" 
                    ValidationGroup="check" CssClass="inp-form"></asp:TextBox> &nbsp;<asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtDiaChi" 
                    ErrorMessage="RequiredFieldValidator" ForeColor="Red" 
                    ValidationGroup="check">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style=" color:#000000" class="style9">
               *Số CMND: &nbsp;</td>
            <td class="style4">
                <asp:TextBox ID="txtCMND" runat="server" Width="186px" 
                    ValidationGroup="check" CssClass="inp-form"></asp:TextBox> &nbsp;<asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtCMND" 
                    ErrorMessage="RequiredFieldValidator" ForeColor="Red" 
                    ValidationGroup="check">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                    ControlToValidate="txtCMND" ErrorMessage="Số CMND phải là số có 9 chữ số" 
                    ForeColor="Red" ValidationExpression="\d{9}" ValidationGroup="check"></asp:RegularExpressionValidator>
                &nbsp;<asp:Label ID="lbLoiCMND" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style=" color:#000000" class="style9">
                &#272;i&#7879;n Tho&#7841;i: &nbsp;</td>
            <td class="style4">
               <asp:TextBox ID="txtDienThoai" runat="server" Width="186px" 
                    ValidationGroup="check" CssClass="inp-form"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                   ID="RequiredFieldValidator8" runat="server" 
                    ErrorMessage="RequiredFieldValidator" ForeColor="Red" 
                    ControlToValidate="txtDienThoai" ValidationGroup="check">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="txtDienThoai" 
                    ErrorMessage="Số điện thoại phải có 10 hoặc 11 chữ số" ForeColor="Red" 
                    ValidationExpression="\d{10,11}" ValidationGroup="check"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <!--
        <tr>
            <td style=" color:#000000" class="style4">
                Mã Xác Nhận: &nbsp;</td>
            <td class="style4">
                <asp:Image ID="imgCaptcha" runat="server" ImageUrl="~/User/Captch.aspx" />
                <asp:ImageButton ID="imbReload" runat="server" 
                    ImageUrl="~/User/images/iconRe.jpg" />
            </td>
        </tr>
        <tr>
            <td style=" color:#000000" class="style4">
                Nhập Mã Xác Nhận:&nbsp;</td>
            <td class="style4">
               <asp:TextBox ID="txtCaptcha" runat="server" Width="162px" 
                    ValidationGroup="check"></asp:TextBox>&nbsp;
                <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
                &nbsp;</td>
        </tr>-->
        <tr>
            <td colspan="2"  style="color:Red">
            <asp:CheckBox ID="checkboxcamket" runat="server"
                Text="Tôi Cam Kết Những Thông Tin Là Chính Xác" ForeColor="Black" 
                    ValidationGroup="check" />
                
               </td>
        </tr>

        <tr>
            <td colspan="2"  style="text-align: center">
                <asp:Button ID="btnDangKy" runat="server" Text="&#272;&#259;ng k&yacute;" 
                    onclick="btnDangKy_Click1" Width="80px" CssClass="button" Height="25px" 
                    ValidationGroup="check" />   &nbsp; &nbsp;&nbsp;&nbsp;<input id="Button1" type="reset" value="Làm Mới" style="width: 80px; height: 25px" onclick="return Button1_onclick()" />
&nbsp;</td>
        </tr>

    </table>
    </div>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

